﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="UnBidDrugList.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.BidProdManage.UnBidDrugList"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="BidDrugList.aspx">采购产品列表</a></li>
            <li class="active"><a href="UnBidDrugList.aspx">其他产品列表</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                产品名称：</td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblOutLook" runat="server" Text="规格型号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLook" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblMaterial" runat="server" Text="材质："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                            
                        </tr>
                        <asp:Literal ID="ltlAdvance" runat="server" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblPinyinCode" runat="server" Text="拼音码："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPinyinCode" runat="server"></asp:TextBox>
                            </td>
                            <%--<td align="right">
                                <asp:Label ID="lblFactor" runat="server" Text="转换系数："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtFactor" runat="server" MaxLength="5"></asp:TextBox>
                            </td>--%>
                            <td align="right">
                                <asp:Label ID="lblUnit" runat="server" Text="单位："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblProduceCompany" runat="server" Text="生产企业："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProduceCompany_SC" runat="server"></asp:TextBox>
                            </td>
                            
                        </tr>
                        <tr>
                            <%--<td align="right">
                                <asp:Label ID="lblProductType" runat="server" Text="分类："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductType" runat="server"></asp:TextBox>
                            </td>--%>
                            
                        </tr>
                        </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                        Text="高级查询"></hz:HzLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwBidDrug" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！" onrowdatabound="gvwBidDrug_RowDataBound" DataKeyNames="GoodsID">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品名称">
                <ItemTemplate>
                    <asp:Label ID="lblGoodsName" runat="server" Text='<%# Eval("GoodsName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" Visible="false" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
             <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            
            <%--<asp:BoundField DataField="Factor" HeaderText="转换系数" />--%>
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <asp:BoundField DataField="SortName" HeaderText="分类" Visible="false"/>
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:TemplateField HeaderText="医疗机构采购价">
                <ItemTemplate>
                    <asp:Label ID="lblLimitPrice" runat="server" Text='<%# Eval("LimitPrice", "{0:N4}") %>'></asp:Label>
                    <asp:TextBox ID="txtLimitPrice" runat="server" Visible="false"  Width="50px" Text='<%# Eval("LimitPrice","{0:N4}") %>' oncontextmenu="javascript:return false;" onblur="javascript:return check_isdecimal();" onkeydown="javascript:return check_isdecimal();" ></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField>
            <%--<asp:TemplateField HeaderText="备案"  Visible="false">
                <ItemTemplate>
                    <asp:Label ID="lblSortSource" runat="server" Text='<%# (Convert.ToInt32( Eval("Source"))==2)?"<font color=red>是</font>":"否" %>'></asp:Label>
                </ItemTemplate>                
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                <hz:HzLinkButton ID="HzLinkButton2" runat="server" ToolTip="将此采购产品加为采购产品" Text='<img src="../../lib/images/add.gif" align="middle" alt="" >加为采购产品'
                        OnClientClick='<%# GetURLScript("BidProductAdd.aspx?goodsid="+Eval("GoodsID")+"&SortSource=3")%>'
                        OperateType="新增" ModuleNo="采购产品管理"></hz:HzLinkButton>
                </ItemTemplate>
                <HeaderStyle Width="55px" />
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwBidDrug','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="checkbox1" id="checkbox1" value='<%#Eval("GoodsID")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwBidDrug','addTable_chkAll');" runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="25px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>说明:<span>对于批量修改产品，请在保存前勾选要修改的产品条目。</span></li>
        </ul>
    </div>
    <div class="listctrl">
     <hz:HzButton ID="btnEditLimitPrice" runat="server" Text="批量修改产品" 
        CssClass="btn" onclick="btnEditSellPrice_Click"/>
     <hz:HzButton ID="btnSaveLimitPrice" runat="server" Text="保存修改"  
             CssClass="btn" Visible="false" OnClientClick="return checkSelectedItems('ctl00_ContentPlaceHolder1_gvwBidDrug','请至少选择一个采购目录');"
              onclick="btnSaveSellPrice_Click" />
    </div>
</asp:Content>
